#include <stdio.h>
#include "hotel.h"

int main(int argc, char const *argv[])
{
	int night;
	double hotel_rate;
	int code;

	while ((code=menu())!=QUIT)
	{
		switch (code)
		{
			case 1 :hotel_rate=HOTEL1;
			break;
			case 2 :hotel_rate=HOTEL2;
			break;
			case 3 :hotel_rate=HOTEL3;
			break;
			case 4 :hotel_rate=HOTEL4;
			break;
			default :hotel_rate=0.0;
			printf("Oops!\n");
			break;
		}
		night=getnights();
		showprice(hotel_rate,night);
	}
	printf("Bye!\n");
	return 0;
}